/**
 * Created with IntelliJ IDEA.
 * User: zet
 * Date: 13-3-5
 * Time: 下午7:31
 * To change this template use File | Settings | File Templates.
 */

(function(window, document){
    Array.prototype.inArray = function(item){
        var i = 0;
        for(i = 0; i < this.length; i++){
            if(item === this[i]){
                return true;
            }
            return false;
        }
    };

    /**
     * like Map<String, Object> in Java
     * @constructor
     */
    var Map = function(){
    };

    Map.prototype = {
        put: function(key, value){
            this[key] = value;
        },
        get: function(key){
            return this[key];
        }
    };

    window.Map = Map;
})(window, document);
